package com.day0908;

import java.util.Scanner;

public class Text3 {
    public static void main(String[] args) {
//        do {
//            循环操作；
//        }while(循环条件);
        Scanner in = new Scanner(System.in);
        String answer = "";
        do{
            System.out.println("上机！");
            System.out.println("合格了吗？（y/n）");
            answer = in.next();
        }while (answer.equals("n"));
    }
}
